You are here: Artificial Intelligence > Segment with AI

Segment with AI

The Segment with AI feature lets you segment datasets with any of the deep learning or machine learning semantic segmentation models that you trained, imported, or downloaded (see Training Deep Models for Semantic Segmentation and Machine Learning Segmentation for information about training segmentation models).

The Segment with AI panel, shown below, is available by default on the Segment tab. Choose Artificial Intelligence > Segment with AI on the menu bar or right-click the dataset you want to segment on the Data Properties and Settings panel and then choose Segment with AI in the pop-up menu to open the panel.

Segment with AI

Segment with AI panel

The following options are available on the Segment with AI panel.

Segment with AI options

 

Description

Segmentation Model

Lets you choose a segmentation model. You should note that models are filtered based on the current selection and are sorted by the number of classes in the model.

Note The color and name of the classes associated with the model is shown in the Classes box.

Inputs

Indicates the currently selected input(s).

  • To change the selection, choose another item(s) in the Data Properties and Setting panel.
  • For multi-modality models, you change the order of the selected inputs by dragging an input, as shown below.

    Reorder inputs

    Note Input order must be consistent with model training.

  • For 3D models, you can modify the default Reference slice and Spacing settings, if required.

Import Settings from Preview… Lets you import the settings from a selected preview. Previews can be selected in the Chose a Preview to Import Settings dialog, as shown below.

Classes

Lists the classes in the selected model, as well as the color and name associated with each class.

Visible… If selected, the highlight applied to classified voxels will be shown on segmentation previews.

Color… Determines the highlight color applied to classified voxels. If required, you can change the highlight color (see Choosing Colors).

Name… Is the name assigned to the class label and the name that will appear in the output multi-ROI. If required, you can change the assigned name.

Preview

Lets you generate previews using the currently selected segmentation model, as shown in the following illustration. You should note that previews are limited to the visible voxels in the selected 2D view.

Compute preview

The following options are available for segmentation previews:

  • You can choose different settings for the input(s). For example, input order for multi-modality models and reference slice and spacing for 3D models.
  • You can choose to make the highlight applied to segmented classes visible or not visible in the Classes box.
  • The default highlight color can be changed in the Classes box.
  • The opacity of the preview can be adjusted with the Preview opacity slider.

Note You can click the Delete button to remove the preview from the current view.

Segment

Lets you automatically segment dataset(s) with the currently selected segmentation model, as shown below. The resulting multi-ROI will added to the Data Properties and Settings panel when processing is complete.

Segment options

All slices… If selected, the full dataset will be segmented.

Marked slices… If selected, only marked slices will be segmented (see Marking Image Slices).

With mask… If selected, only data within the region of interest selected as the mask will be processed (see Creating Mask ROIs).

 

Dragonfly Help Live Version